package com.sun.androidexerciseproject.widget.mvvm.viewmodel;

import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;

public class DemoViewModel extends ViewModel {
    private MutableLiveData<String> myString = new MutableLiveData<>();

    public MutableLiveData<String> getMyString() {
        return myString;
    }

    public void setMyString(String string) {
        myString.setValue(string);
    }
}
